package com.adhoc;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;

public class MainActivity extends Activity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		


	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		getMenuInflater().inflate(R.menu.activity_main, menu);
		return true;
	}
	
	public void enableWireless(View view) {
		String MASK = ((EditText)findViewById(R.id.MASKTF)).getText().toString();
		String IP = ((EditText)findViewById(R.id.IPTF)).getText().toString();
		String SSID = ((EditText)findViewById(R.id.SSIDTF)).getText().toString();
		Wireless.enable("ad-hoc", 1, SSID , IP, MASK);
	}
}
